package com.tf_cut.admin.api.vo;

import javax.validation.constraints.*;

public class SinglePaid {
    @NotBlank(message = "appKey不能为空")
    private String appKey;
    @NotBlank(message = "customerNo不能为空")
    private String customerNo;
    @NotBlank(message = "identityCardNum不能为空")
    @Size(max = 18,message = "identityCardNum不能超过18位")
    private String identityCardNum;
    @NotBlank(message = "name不能为空")
    private String name;
    @NotBlank(message = "mobile不能为空")
    @Size(max = 11,message = "mobile不能超过11位")
    private String mobile;
    @NotBlank(message = "amount不能为空")
    @DecimalMax(value = "49999.00",message = "单笔交易金额不能超过5万")
    //@DecimalMin(value = "100.00",message = "单笔交易金额不能低于100")
    @Digits(integer = 5, fraction = 2,message = "金额整数部分为5位，小数为2位")
    private String amount;
    @NotBlank(message = "bankName不能为空")
    private String bankName;
    @NotBlank(message = "bankCardNum不能为空")
    @Size(max = 32,message = "bankCardNum不能超过32位")
    private String bankCardNum;
    @NotBlank(message = "currentTime不能为空")
    private String currentTime;
    private String remark;
    @NotBlank(message = "sign不能为空")
    private String sign;
    
    private String appIdKey;

    private String sellerId;

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public String getCustomerNo() {
        return customerNo;
    }

    public void setCustomerNo(String customerNo) {
        this.customerNo = customerNo;
    }

    public String getIdentityCardNum() {
        return identityCardNum;
    }

    public void setIdentityCardNum(String identityCardNum) {
        this.identityCardNum = identityCardNum;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getAmount() {
        return amount;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }

    public String getBankCardNum() {
        return bankCardNum;
    }

    public void setBankCardNum(String bankCardNum) {
        this.bankCardNum = bankCardNum;
    }

    public String getCurrentTime() {
        return currentTime;
    }

    public void setCurrentTime(String currentTime) {
        this.currentTime = currentTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getSellerId() {
        return sellerId;
    }

    public void setSellerId(String sellerId) {
        this.sellerId = sellerId;
    }
    
    

    public String getAppIdKey() {
		return appIdKey;
	}

	public void setAppIdKey(String appIdKey) {
		this.appIdKey = appIdKey;
	}

	@Override
    public String toString() {
        return "SinglePaid{" +
                "appKey='" + appKey + '\'' +
                ", customerNo='" + customerNo + '\'' +
                ", identityCardNum='" + identityCardNum + '\'' +
                ", name='" + name + '\'' +
                ", mobile='" + mobile + '\'' +
                ", amount='" + amount + '\'' +
                ", bankName='" + bankName + '\'' +
                ", bankCardNum='" + bankCardNum + '\'' +
                ", currentTime='" + currentTime + '\'' +
                ", remark='" + remark + '\'' +
                '}';
    }

    public String toSignStr(){
        return appKey +
                "&customerNo=" + customerNo +
                "&identityCardNum=" + identityCardNum +
                "&name=" + name +
                "&mobile=" + mobile +
                "&amount=" + amount +
                "&bankName=" + bankName +
                "&bankCardNum=" + bankCardNum +
                "&currentTime=" + currentTime +
                "&remark=" + remark;
    }
}
